-module(pt_sg_fighting_record_info_d106).
-include("pt.hrl").

-export([new/0,from_binary/1,to_binary/1,to_binary/2,get_id/0]).

get_id()-> 16#D106.

new()->#pt_sg_fighting_record_info{}.

from_binary(Binary) -> 
	{_Binary,Data1} = lib_protocol:from_binary(Binary,{list,fighting_record_info_from_binary}),
	#pt_sg_fighting_record_info{
		fighting_record_info = Data1
	}.

to_binary(Pt) -> to_binary(Pt,0).
to_binary(Pt,Seq) -> 
	Data1 = lib_protocol:to_binary(Pt#pt_sg_fighting_record_info.fighting_record_info,{list,fighting_record_info_to_binary}),
	GetData = <<Data1/binary>>,
	lib_protocol:make_pt(GetData,get_id(),Seq).

